//
//  ShaHeDemo.swift
//  firstProject
//
//  Created by 张彦辉 on 2017/4/16.
//  Copyright © 2017年 张彦辉. All rights reserved.
//

import UIKit

class ShaHeDemo: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
        //沙盒目录
        var dir = NSHomeDirectory()
        print("NSHomeDirectory=\(dir)")
        dir = NSTemporaryDirectory()
        print("NSTemporaryDirectory=\(dir)")
        dir = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first!
        print(".documentDirectory=\(dir)")
        dir = NSSearchPathForDirectoriesInDomains(.libraryDirectory, .userDomainMask, true).first!
        print(".libraryDirectory=\(dir)")
        dir = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first!
        print(".cachesDirectory=\(dir)")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
